package com.lizx.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lizx.pojo.TbArea;
import com.lizx.pojo.vo.TbAreaVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface AdminAreaMapper extends BaseMapper<TbArea> {

    @Select("select * from tb_area")
    List<TbArea> list();

    @Select("select id,name from tb_area")
    List<TbAreaVo> selectListAll();
}
